Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s
↳ QTRS
↳ DependencyPairsProof
Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s
TERM_SUB2(Term_sub2(m, s), t) -> CONCAT2(s, t)
TERM_SUB2(Term_sub2(m, s), t) -> TERM_SUB2(m, Concat2(s, t))
TERM_SUB2(Case3(m, xi, n), s) -> FROZEN4(m, Sum_sub2(xi, s), n, s)
TERM_SUB2(Term_inl1(m), s) -> TERM_SUB2(m, s)
TERM_SUB2(Term_var1(x), Cons_usual3(y, m, s)) -> TERM_SUB2(Term_var1(x), s)
CONCAT2(Cons_usual3(x, m, s), t) -> CONCAT2(s, t)
CONCAT2(Concat2(s, t), u) -> CONCAT2(s, Concat2(t, u))
CONCAT2(Cons_usual3(x, m, s), t) -> TERM_SUB2(m, t)
TERM_SUB2(Term_app2(m, n), s) -> TERM_SUB2(n, s)
TERM_SUB2(Case3(m, xi, n), s) -> SUM_SUB2(xi, s)
FROZEN4(m, Sum_constant1(Right), n, s) -> TERM_SUB2(n, s)
CONCAT2(Concat2(s, t), u) -> CONCAT2(t, u)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(n, s)
TERM_SUB2(Term_inr1(m), s) -> TERM_SUB2(m, s)
FROZEN4(m, Sum_constant1(Left), n, s) -> TERM_SUB2(m, s)
SUM_SUB2(xi, Cons_sum3(psi, k, s)) -> SUM_SUB2(xi, s)
TERM_SUB2(Term_app2(m, n), s) -> TERM_SUB2(m, s)
FROZEN4(m, Sum_term_var1(xi), n, s) -> TERM_SUB2(n, s)
SUM_SUB2(xi, Cons_usual3(y, m, s)) -> SUM_SUB2(xi, s)
TERM_SUB2(Term_var1(x), Cons_sum3(xi, k, s)) -> TERM_SUB2(Term_var1(x), s)
FROZEN4(m, Sum_term_var1(xi), n, s) -> TERM_SUB2(m, s)
CONCAT2(Cons_sum3(xi, k, s), t) -> CONCAT2(s, t)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(m, s)
Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
TERM_SUB2(Term_sub2(m, s), t) -> CONCAT2(s, t)
TERM_SUB2(Term_sub2(m, s), t) -> TERM_SUB2(m, Concat2(s, t))
TERM_SUB2(Case3(m, xi, n), s) -> FROZEN4(m, Sum_sub2(xi, s), n, s)
TERM_SUB2(Term_inl1(m), s) -> TERM_SUB2(m, s)
TERM_SUB2(Term_var1(x), Cons_usual3(y, m, s)) -> TERM_SUB2(Term_var1(x), s)
CONCAT2(Cons_usual3(x, m, s), t) -> CONCAT2(s, t)
CONCAT2(Concat2(s, t), u) -> CONCAT2(s, Concat2(t, u))
CONCAT2(Cons_usual3(x, m, s), t) -> TERM_SUB2(m, t)
TERM_SUB2(Term_app2(m, n), s) -> TERM_SUB2(n, s)
TERM_SUB2(Case3(m, xi, n), s) -> SUM_SUB2(xi, s)
FROZEN4(m, Sum_constant1(Right), n, s) -> TERM_SUB2(n, s)
CONCAT2(Concat2(s, t), u) -> CONCAT2(t, u)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(n, s)
TERM_SUB2(Term_inr1(m), s) -> TERM_SUB2(m, s)
FROZEN4(m, Sum_constant1(Left), n, s) -> TERM_SUB2(m, s)
SUM_SUB2(xi, Cons_sum3(psi, k, s)) -> SUM_SUB2(xi, s)
TERM_SUB2(Term_app2(m, n), s) -> TERM_SUB2(m, s)
FROZEN4(m, Sum_term_var1(xi), n, s) -> TERM_SUB2(n, s)
SUM_SUB2(xi, Cons_usual3(y, m, s)) -> SUM_SUB2(xi, s)
TERM_SUB2(Term_var1(x), Cons_sum3(xi, k, s)) -> TERM_SUB2(Term_var1(x), s)
FROZEN4(m, Sum_term_var1(xi), n, s) -> TERM_SUB2(m, s)
CONCAT2(Cons_sum3(xi, k, s), t) -> CONCAT2(s, t)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(m, s)
Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ QDP
SUM_SUB2(xi, Cons_sum3(psi, k, s)) -> SUM_SUB2(xi, s)
SUM_SUB2(xi, Cons_usual3(y, m, s)) -> SUM_SUB2(xi, s)
Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s
The following pairs can be strictly oriented and are deleted.
The remaining pairs can at least by weakly be oriented.
SUM_SUB2(xi, Cons_sum3(psi, k, s)) -> SUM_SUB2(xi, s)
SUM_SUB2(xi, Cons_usual3(y, m, s)) -> SUM_SUB2(xi, s)
Consusual3 > [SUMSUB2, Conssum1]
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
TERM_SUB2(Term_var1(x), Cons_usual3(y, m, s)) -> TERM_SUB2(Term_var1(x), s)
TERM_SUB2(Term_var1(x), Cons_sum3(xi, k, s)) -> TERM_SUB2(Term_var1(x), s)
Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s
The following pairs can be strictly oriented and are deleted.
The remaining pairs can at least by weakly be oriented.
TERM_SUB2(Term_var1(x), Cons_usual3(y, m, s)) -> TERM_SUB2(Term_var1(x), s)
TERM_SUB2(Term_var1(x), Cons_sum3(xi, k, s)) -> TERM_SUB2(Term_var1(x), s)
Conssum3 > [TERMSUB1, Consusual2]
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ PisEmptyProof
↳ QDP
Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
TERM_SUB2(Term_sub2(m, s), t) -> CONCAT2(s, t)
TERM_SUB2(Case3(m, xi, n), s) -> FROZEN4(m, Sum_sub2(xi, s), n, s)
TERM_SUB2(Term_inl1(m), s) -> TERM_SUB2(m, s)
TERM_SUB2(Term_sub2(m, s), t) -> TERM_SUB2(m, Concat2(s, t))
CONCAT2(Cons_usual3(x, m, s), t) -> CONCAT2(s, t)
CONCAT2(Concat2(s, t), u) -> CONCAT2(s, Concat2(t, u))
CONCAT2(Cons_usual3(x, m, s), t) -> TERM_SUB2(m, t)
TERM_SUB2(Term_app2(m, n), s) -> TERM_SUB2(n, s)
FROZEN4(m, Sum_constant1(Right), n, s) -> TERM_SUB2(n, s)
CONCAT2(Concat2(s, t), u) -> CONCAT2(t, u)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(n, s)
TERM_SUB2(Term_inr1(m), s) -> TERM_SUB2(m, s)
FROZEN4(m, Sum_constant1(Left), n, s) -> TERM_SUB2(m, s)
TERM_SUB2(Term_app2(m, n), s) -> TERM_SUB2(m, s)
FROZEN4(m, Sum_term_var1(xi), n, s) -> TERM_SUB2(n, s)
FROZEN4(m, Sum_term_var1(xi), n, s) -> TERM_SUB2(m, s)
CONCAT2(Cons_sum3(xi, k, s), t) -> CONCAT2(s, t)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(m, s)
Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s